home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
10,000 Great Games
/
10,000 Great Games.iso
/
Product
/
66
/
data1.cab
/
Source_Files
/
Src
/
Timer.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
2000-01-16
|
287b
|
24 lines
#include "stdafx.h"
int cTimer::timer = 0, cTimer::last = 0, cTimer::paused = FALSE;
void cTimer::pause()
{
get();
paused = TRUE;
}
void cTimer::unpause()
{
get();
paused = FALSE;
}
void cTimer::togglepause()
{
if (paused)
unpause();
else
pause();
}